package com.mallcloud.mall.product.service;

import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mallcloud.mall.product.api.entity.CategoryModel;

import java.util.List;

/**
 * 分类信息
 */
public interface CategoryService extends IService<CategoryModel> {

    List<Tree<Long>> selectTree(Long parentId, String name);

    Boolean removeCategoryById(Long categoryId);

    Boolean updateCategoryById(CategoryModel dto);

    Boolean saveCategory(CategoryModel dto);

}
